import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart';

class AuthProvider with ChangeNotifier {
  Future<SharedPreferences> _prefs = SharedPreferences.getInstance();
  String token;
   setToken(String token){
    this.token=token;
    notifyListeners();
  }
  getToken() async {
  await  _prefs.then((ins){
   token= ins.getString("token");
    notifyListeners();
  });
  }
}